package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TDeviceMapper;
import com.ruoyi.system.domain.TDevice;
import com.ruoyi.system.service.ITDeviceService;

/**
 * 设备折旧Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-03-17
 */
@Service
public class TDeviceServiceImpl implements ITDeviceService 
{
    @Autowired
    private TDeviceMapper tDeviceMapper;

    /**
     * 查询设备折旧
     * 
     * @param did 设备折旧主键
     * @return 设备折旧
     */
    @Override
    public TDevice selectTDeviceByDid(Long did)
    {
        return tDeviceMapper.selectTDeviceByDid(did);
    }

    /**
     * 查询设备折旧列表
     * 
     * @param tDevice 设备折旧
     * @return 设备折旧
     */
    @Override
    public List<TDevice> selectTDeviceList(TDevice tDevice)
    {
        return tDeviceMapper.selectTDeviceList(tDevice);
    }

    /**
     * 新增设备折旧
     * 
     * @param tDevice 设备折旧
     * @return 结果
     */
    @Override
    public int insertTDevice(TDevice tDevice)
    {
        return tDeviceMapper.insertTDevice(tDevice);
    }

    /**
     * 修改设备折旧
     * 
     * @param tDevice 设备折旧
     * @return 结果
     */
    @Override
    public int updateTDevice(TDevice tDevice)
    {
        return tDeviceMapper.updateTDevice(tDevice);
    }

    /**
     * 批量删除设备折旧
     * 
     * @param dids 需要删除的设备折旧主键
     * @return 结果
     */
    @Override
    public int deleteTDeviceByDids(Long[] dids)
    {
        return tDeviceMapper.deleteTDeviceByDids(dids);
    }

    /**
     * 删除设备折旧信息
     * 
     * @param did 设备折旧主键
     * @return 结果
     */
    @Override
    public int deleteTDeviceByDid(Long did)
    {
        return tDeviceMapper.deleteTDeviceByDid(did);
    }
}
